<template>
    <div class="googd">
        <h1>{{goodsdesc.title}}</h1>
        <p  v-html="goodsdesc.content"></p>
    </div>
</template>
<script>
    import axios from 'axios'
    import {Toast} from 'mint-ui'
    export default {
        data(){
            return {
                goodsdesc:{},
                id:this.$route.params.id
            }
        },
        created() {
            this.goodscmt()
        },
        methods:{
            goodscmt(){
                // console.log(this.id)
                axios({
                    method:'get',
                    url:`http://www.liulongbin.top:3005/api/goods/getdesc/${this.id}`
                }).then(res=>{
                     if(res.data.status===0){
                        this.goodsdesc=res.data.message[0]
                    }else{
                        Toast("获取数据失败")
                    }
                })
            }
        }
    }
</script>
<style lang="scss">

    
    p{
        .gomeImgLoad{
            width: 100%;
        }
        }
    

</style>
